package com.tfj.mvp.tfj.detail.adapter;

import android.widget.TextView;

import com.amap.api.services.core.PoiItem;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hyphenate.tfj.R;

public class QuickAdapter_Addr extends BaseQuickAdapter<PoiItem, BaseViewHolder> {
    public QuickAdapter_Addr(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder viewHolder, final PoiItem item) {
        viewHolder.setText(R.id.textView_title, item.getTitle()).setText(R.id.textView_distance, item.getDistance() + "m");
    }
}

